import http from './public'

//获取数据字典数据
export const sys_getDictionary= dType => {
  return http.requestQuickGet('/sys/dictionary/get/'+dType)
};

//根据课程id从索引库中获取课程发布后的信息
export const course_view = id => {
  return http.requestGet('/openapi/search/course/getall/'+id);
};




/*课程查询*/
export const course_findByIds = ids => {
  return http.requestGet('/openapi/search/course/getbase/'+ids);
};

/*获取jwt令牌*/
export const getjwt= () => {
  return http.requestQuickGet('/openapi/auth/userjwt')
};

/*存储文件元数据*/
export const sys_saveFileMetedata = params => {
  return http.requestPost('/filesystem/saveFileMetedata',params)
};

/*删除文件*/
export const sys_deleteFile = params => {
  return http.requestPost('/filesystem/delete',params)
};
